package org.dromara.common.core.utils;

import lombok.Data;

@Data
public class GsonResultBean<T> {

	protected int code;
	protected String msg;
	protected int totalcount;
	protected T data;

	public GsonResultBean() { }

	public GsonResultBean(int code, String msg, int totalcount, T data) {
		this.code = code;
		this.msg = msg;
		this.totalcount = totalcount;
		this.data = data;
	}

	public GsonResultBean(int code, String msg) {
		this.code = code;
		this.msg = msg;
	}

	public GsonResultBean(int code, String msg, T data) {
		this.code = code;
		this.msg = msg;
		this.data = data;
	}
}
